/*
 * @Author: your name
 * @Date: 2021-12-22 14:56:32
 * @LastEditTime: 2021-12-22 14:57:40
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \first_one_file\react-travel\src\redux\middlewares\actionLog.ts
 */
import { Middleware } from 'redux';

export const actionLog: Middleware = (store) => (next) => (action) => {
  console.log('store.getState() :>> ', store.getState());
  console.log('action :>> ', action);
  next(action);
  console.log('store.getState() :>> ', store.getState());
};
